package com.eurobcoin.filipides.model;

import java.io.Serializable;

import org.hibernate.validator.constraints.NotEmpty;

import com.eurobcoin.user.UserModel;

public class LoginForm implements Serializable {

	private static final long serialVersionUID = -1360684813990614828L;
	
	@NotEmpty(message="NotEmpty.loginForm.login")
	private String login;
	
	private String password;
	
	private boolean error;
	
	private String errorMsg;
	
	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isError() {
		return error;
	}

	public void setError(boolean error) {
		this.error = error;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public void reset() {
		this.login = null;
		this.password = null;
		this.error = false;
		this.errorMsg = null;
	}
	
}
